<template>
    <div>
      <h1>查询参数：{{id}}</h1>
      <h1>查询参数：{{score}}</h1>
      <ul><li><input type="text"></li>
          <li>姓名：{{name}}</li>
          <li>年龄：{{age}}</li>
          <li>性别：{{sex}}</li>
          <li>职称：{{rank}}</li>
      </ul>
    </div>
  </template>
  
  <script>
  export default {
    name: 'TeacherView',
    data() {
      return {
          name:'李四',
          age:35,
          sex:'女',
          rank:'教授'
      }
    },
    //配置和router对应的props
    props:['id','score']
  }
  </script>
  
  <style>
  
  </style>